import mes.GetBluetoothAddressBySN
from test_py import BL135_function

def main_testcase_1(res:int=5, res2:str='999'):
    return res
def main_testcase_2(res_2:str='pass'):
    return res_2

case_func_dict = {
    'testcase_1':main_testcase_1,
    'testcase_2':main_testcase_2,
    'mes_get_bt_mac':mes.GetBluetoothAddressBySN.GetBluetoothAddressBySN
}

PROJECT_NAME = 'PB130'
STATION_NAME = 'END'

# def init():
#     from commons.common import get_module_func_dict
#     from test_py import BL135_function
#     from test_py import common
#     d = get_module_func_dict(BL135_function, 'PB130', '_')
#     case_func_dict.update(d)
#     d_common = get_module_func_dict(common, sep='')
#     case_func_dict.update(d_common)
    # print('字典：',case_func_dict)

# case_func_dict = {
#     'testcase_1':main_testcase_1,
#     'testcase_2':main_testcase_2,
#     'mes_get_bt_mac':mes.GetBluetoothAddressBySN.GetBluetoothAddressBySN
# }

case_func_dict = {
    'testcase_1':main_testcase_1,
    'testcase_2':main_testcase_2,
    'BL135_open_ser': BL135_function.open_ser,
    'BL135_DUT_to_Testing': BL135_function.DUT_to_Testing,
    'BL135_DUT_turn_on':BL135_function.DUT_turn_on,
    'BL135_DUT_turn_off':BL135_function.DUT_turn_off,
    'BL135_get_BT_version':BL135_function.get_BT_version,
    'BL135_get_MCU_version':BL135_function.get_MCU_version,
    'BL135_get_BTNAME':BL135_function.get_BTNAME,
    'BL135_get_BTMAC':BL135_function.get_BTMAC,
    'BL135_LED_ON_W_Test':BL135_function.LED_ON_W_Test,
    'BL135_LED_ON_R_Test':BL135_function.LED_ON_R_Test,
    'BL135_LED_ON_G_Test':BL135_function.LED_ON_G_Test,
    'BL135_LED_ON_B_Test':BL135_function.LED_ON_B_Test,
    'BL135_get_bat_temp':BL135_function.get_bat_temp,
    'BL135_get_bat_voltage':BL135_function.get_bat_voltage,
    'BL135_get_bat_level':BL135_function.get_bat_level,
    'BL135_get_key_in_Test':BL135_function.get_key_in_Test,
    'BL135_get_key_out_Test':BL135_function.get_key_out_Test,
    'BL135_get_key_power':BL135_function.get_key_power,
    'BL135_get_key_light':BL135_function.get_key_light,
    'BL135_get_key_Auxxxx':BL135_function.get_key_Auxxxx,
    'BL135_get_Auracast_conn':BL135_function.get_Auracast_conn,
    'BL135_DUT_RST':BL135_function.DUT_RST,
}